package com.woniuxy.adminmodel.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加管理员参数对象")
public class AddAdminForm {

    @NotBlank(message = "管理员电话不为空")
    @ApiModelProperty("管理员电话")
    private String adminPhone;
    @NotNull(message = "角色不为空")
    @Min(1)
    @Max(2)
    @ApiModelProperty("管理员角色:1超级,2普通")
    private Integer role;
}
